<?php

class User
{
    var $ID;
    var $uime;
    var $ime;
    var $priimek;
    var $email;
    var $geslo;

    function User($ID, $uime, $ime, $priimek, $email, $geslo)
    {
        $this->ID = $ID;
        $this->uime = $uime;
        $this->ime = $ime;
        $this->priimek = $priimek;
        $this->email = $email;
        $this->geslo = $geslo;
    }
     
    function printUser($user)
    {
        if (sizeof($user) == 0)
        {
            print("zelenjava");
        }

        for ($i = 0; $i < sizeof($user); $i++)
        {
            print("<br />ID: ".$user[$i]->ID." Uporabnik: ".$user[$i]->uime." eMail: ".$user[$i]->email);
        }
    }
}
?>